package com.daka.dao;

import com.daka.entity.TopicComment;
import com.daka.mybatis.SQLMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author beliveli on 2016/3/31 0031.
 */
@Repository(value = "topicCommentMapper")
@SQLMapper
public interface TopicCommentMapper {

    TopicComment selectById(int id);

    List<TopicComment> selectByTopic(int topicId);

    List<TopicComment> selectAll();

    int save(TopicComment comment);

    int updateById(TopicComment comment);
}
